package com.example.communist_app_api.vo.web.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author Brother Sheng Editor
 * @version 1.0
 * Create by 2023/2/26 17:02
 */
@ApiModel("查询活动参数")
@Data
public class ActivitySelectReq {

    /**
     * 标题
     */

    @ApiModelProperty("主题")
    private String title;

    /**
     * 开展形式，线下为0，线上为1
     */

    @ApiModelProperty("开展形式")
    private Byte style;

    /**
     * 地点
     */

    @ApiModelProperty("地点")
    private String place;

    @NotEmpty
    @ApiModelProperty("时间段")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private List<Date> dateRange;



    @NotNull
    @ApiModelProperty("页数")
    private Integer pageNum;

    @NotNull
    @ApiModelProperty("每页记录的条数")
    private Integer pageSize;




}
